

	// Xem so du tu client
	public void Xemsodu(String stk) throws Exception {
		int sotien = 0;
		String url = "com.mysql.jdbc.Driver";
		synchronized (Getaccount(stk)) {

			try {
				Class.forName(url);
				Connection cn = DriverManager.getConnection(
						"jdbc:mysql://localhost:3306/atm", "root", "");
				String sql = "select* from khachhang where sotaikhoan='" + stk
						+ "'";
				PreparedStatement stmt = cn.prepareStatement(sql);
				ResultSet r = stmt.executeQuery();// thuc thi
				while (r.next()) {
					sotien = r.getInt("tongtien");
				}
				cn.close();
			} catch (Exception e) {
				System.out.println(e);
			}
			out.println(sotien);
			out.flush();
		}
	}

	